package com.ithuaxin.comprehensiveractice;

import java.util.Scanner;

public class Test3 {
    public static void main(String[] args) {
        int sum=100;
        boolean flag = true;
        for (int i=101;i<=200;i++){
            for (int j=2;j<i;j++){
                flag = true;
                if (i%j==0){
                    sum--;
                    flag = false;
                    break;
                }
            }
            if (flag){
                System.out.println(i);
            }
        }
        System.out.println("质数的个数为："+sum);

    }
}
